const http = require("http");
const url = require("url");


var username = process.argv[2]; //用户名
var password = process.argv[3]; //密码
var userInfor = {
    username: username,
    password: password
}
var userStr = JSON.stringify(userInfor); //转化为JSON字符串

var reqUrl = "http://localhost:8081/"
var options = url.parse(reqUrl);
options.method = "POST";
var reqObj = http.request(options, (res)=>{
    
})
reqObj.write(userStr); //向请求体写入数据
reqObj.end();
